package org.xx.armory.swing.builders;

public class ListBoxModelBuilder
        extends ComponentModelBuilder<ListBoxModel> {
    private int size;
    private int rowSize;

    public ListBoxModelBuilder() {
    }

    public ListBoxModelBuilder setSize(
            int size
    ) {
        this.size = size;
        return this;
    }

    public ListBoxModelBuilder setRowSize(
            int rowSize
    ) {
        this.rowSize = rowSize;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public ListBoxModel build() {
        return new ListBoxModel(getLineInfo(), getName(), isVisible(), this.size, this.rowSize);
    }
}
